﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VisionFrame.Base.Models
{
    public class NodeArgModel : INotifyPropertyChanged
    {
        public string ArgName { get; set; }
        public string ArgType { get; set; }
        public string Direction { get; set; }

        private object _argValue;

        public object ArgValue
        {
            get { return _argValue; }
            set
            {
                _argValue = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("ArgValue"));
            }
        }



        // 数据的获取方式
        // 0:选择流程参数，下拉列表
        // 1：输入框
        // 2：选择目录
        public int ValueMode { get; set; } = 0;

        public event PropertyChangedEventHandler? PropertyChanged;
    }
}
